/**
 * @file dialog.h
 * @author Yao Zongyou <yaozy2010@gmail.com>
 * @date 2010-12-28
 */

#ifndef DIALOG_H_2010_12_28
#define DIALOG_H_2010_12_28

#include <windows.h>

/** 
 * Put global variables into a struct like this one that will be stored
 * with the window.  That way, each copy of the window (in the unlikely
 * case that there is more than one) can have one of these structs associated
 * with it. 
 */
typedef struct dialog {
	HWND window;
	HWND txtEdit;
	HWND btnOK;
} dialog_t;

dialog_t * new_dialog(HINSTANCE hInst);
void delete_dialog(dialog_t *p_dialog);

#endif /* DIALOG_H_2010_12_08 */
